package graduation.service;

import java.util.List;

import graduation.entity.User;
import graduation.vo.PageVO;

public interface UserService {

	/**
	 * 查询全都用户信息
	 * @param page
	 * @param size
	 * @return
	 */
	public PageVO getAllUser(int page, int size);
	/**
	 * 通过邮箱查询
	 * @param phoneOrEmail
	 * @return
	 */
	public User findByEmail(String email);
	
	/**
	 * 通过电话号码查询
	 * @param phoneOrEmail
	 * @return
	 */
	public User findByPhone(String phone);
	/**
	 * 注册
	 * @param user
	 */
	public void addUser(User user);
	/**
	 * 通过id查询
	 * @param userId
	 * @return
	 */
	public User findUserById(String userId);
	/**
	 * 删除用户
	 * @param user
	 */
	public void delUser(User user);
	/**
	 * 通过姓名模糊查询
	 * @param name
	 * @return
	 */
	public List<User> findUserByName(String name);
	/**
	 *修改
	 * @param user
	 */
	public void updateUser(User user);

}
